home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / macros / tip / yearcal.tip < prev   
Text File  |  1993-09-15  |  2KB  |  68 lines

  1. % This macro source file is from the four volume series
  2. % "TeX in Practice" by Stephan von Bechtolsheim, published
  3. % 1993 by Springer-Verlag, New York.
  4. % Copyright 1993 Stephan von Bechtolsheim.
  5. % No warranty or liability is assumed.
  6. % This macro may be copied freely if no fees other than
  7. % media cost or shipping charges are charged and as long
  8. % as this copyright and the following source code itself
  9. % is not changed. Please see the series for further information.
  10. %
  11. % Version: 1.0
  12. % Date: May 1, 1993
  13. %
  14. %
  15. % This source code is documented in 26.21, p. III-390.
  16. % Original source in file "macros6.TEX", starting line 1540.
  17. \wlog{L: "yearcal.tip" ["macros6.TEX," l. 1540, p. III-390]}%
  18. % This file DOES belong to format "texip."
  19. \InputD{mocal.tip}
  20. \def\YearlyCalendar #1#2#3{%
  21.     \vbox{%
  22.         \dimen0 = #2\relax
  23.         \ifdim\dimen0 = 0.0pt
  24.             \dimen0 = \hsize
  25.         \fi
  26.         \dimen1 = #3\relax
  27.         \ifdim\dimen1 = 0.0pt
  28.             \dimen1 = \dimen0
  29.             \divide\dimen1 by 3
  30.             \advance\dimen1 by -5pt
  31.         \fi
  32.         \hsize = \dimen0
  33.         \centerline{\Large\bf Year #1}
  34.         \bigskip
  35.         \line{%
  36.             \MonthlyCalendar{#1}{1}{\dimen1}%
  37.             \hfil
  38.             \MonthlyCalendar{#1}{2}{\dimen1}%
  39.             \hfil
  40.             \MonthlyCalendar{#1}{3}{\dimen1}%
  41.         }%
  42.         \bigskip
  43.             \line{%
  44.             \MonthlyCalendar{#1}{4}{\dimen1}%
  45.             \hfil
  46.             \MonthlyCalendar{#1}{5}{\dimen1}%
  47.             \hfil
  48.             \MonthlyCalendar{#1}{6}{\dimen1}%
  49.         }%
  50.         \bigskip
  51.         \line{%
  52.             \MonthlyCalendar{#1}{7}{\dimen1}%
  53.             \hfil
  54.             \MonthlyCalendar{#1}{8}{\dimen1}%
  55.             \hfil
  56.             \MonthlyCalendar{#1}{9}{\dimen1}%
  57.         }%
  58.         \bigskip
  59.         \line{%
  60.             \MonthlyCalendar{#1}{10}{\dimen1}%
  61.             \hfil
  62.             \MonthlyCalendar{#1}{11}{\dimen1}%
  63.             \hfil
  64.             \MonthlyCalendar{#1}{12}{\dimen1}%
  65.         }%
  66.     }
  67. }
  68.